import Vue from 'vue'
import Router from 'vue-router'
import Index from '@/pages/index'
import PageB from '@/pages/pageb'
import GridDemo1 from "@/pages/gridDemo1";
import GridDemo2 from "@/pages/gridDemo2";
import GridDemo3 from "@/pages/gridDemo3";
import GridDemo4 from "@/pages/gridDemo4";
import GridDemo5 from "@/pages/gridDemo5";
import GridDemo6 from "@/pages/gridDemo6";
import GridDemo7 from "@/pages/gridDemo7";
import scrollTop from '@/pages/scrollTop'
import dialog from '@/pages/dialog'

Vue.use(Router)

export default new Router({
  routes: [
    {
      path: "/",
      name: "Index",
      component: Index
    },
    {
      path: "/pageb",
      name: "PageB",
      component: PageB,
      meta: {
        title: "锦穗2"
      }
    },
    {
      path: "/gridDemo1",
      name: "gridDemo1",
      component: GridDemo1
    },
    {
      path: "/gridDemo2",
      name: "gridDemo2",
      component: GridDemo2
    },
    {
      path: "/gridDemo3",
      name: "gridDemo3",
      component: GridDemo3
    },
    {
      path: "/gridDemo4",
      name: "gridDemo4",
      component: GridDemo4
    },
    {
      path: "/gridDemo5",
      name: "gridDemo5",
      component: GridDemo5
    },
    {
      path: "/gridDemo6",
      name: "gridDemo6",
      component: GridDemo6
    },
    {
      path: "/gridDemo7",
      name: "gridDemo7",
      component: GridDemo7
    },
    {
      path: '/scrollTop',
      name: 'scrollTop',
      component: scrollTop
    },
    {
      path: '/dialog',
      name: 'dialog',
      component: dialog
    },
  ]
});
